<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include "function_net_tools.php";
$in_array['Name']=$_POST['devname'];
$in_array['Enabled']=$_POST['enabled'];
$in_array['Description']=$_POST['desc'];
$in_array['Mac'] = $_POST['mac'];
$in_array['MTU']=$_POST['mtu'];

$in_array['DHCP']=$_POST['dhcp']; // 0: static 1:dhcp
$in_array['Ip']=$_POST['ip'];
$in_array['Mask']=$_POST['mask'];

$in_array['NegoMode']=$_POST['selectMODEL'];
$in_array['WorkMode']=$_POST['work'];
$in_array['ATMode']=$_POST['atmode'];
$in_array['Arp'] = $_POST['arp'];

$in_array['Able_BW']=$_POST['able_bandwidth'];
$in_array['BandWidth']=$_POST['bandwidth'];

$in_array['Able_Ping']=$_POST['ping'];
$in_array['Able_TraceRoute']=$_POST['traceroute'];

SetXmlNetDevInfoByName($in_array);

include "function_misc_log.php";
$log = $in_array;
$log['Description'] = "'". base64_encode($log['Description']). "'";
logger("Modify", $log,"phyInterface");

include "function_web_misc.php";
PrintSuccessPageAndJump('net_dev_eth_list.php');

?>

<!-- <script language="JavaScript">
function Goto()
{
        window.opener.location.href=window.opener.location.href;
        window.opener.location.href='net_dev_eth_list.php';
        window.close();
}
//setTimeout("Goto()",2000)
</script>
-->

